<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery-3.2.1.min.js"></script>
    <script src="jquery.query.js"></script>
    <script src="layui/layui.js"></script>
    <script src="js/add.js"></script>
    <link href="layui/css/layui.css" rel="stylesheet">
</head>
<body>
    <div class="layui-container">
        <form id="f1">
            用户名：<input class="layui-text" type="text" name="code" id="code"><br>
            性别：<input type="text" name="sex" id="sex"><br>
            工资：<input type="number" name="salary" id="salary"><br>
            生日：<input type="date" name="birthday" id="birthday"><br>
        </form>
        <a class="layui-btn btn layui-btn-normal" href="javascript:addUser()">注册</a>
    </div>
</body>
</html>